home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / AMOS / AMOSList-0697 / AMOSLIST / text0249.txt < prev    next >
Encoding:
Text File  |  1997-07-03  |  1.0 KB  |  28 lines

  1. I am working on an AMOS project, a simple shooter for the AMIGA Public
  2. Domain.
  3. While coding the game, I have run into a problem:
  4.      I have a scene where an enemy slides up and comes into view in a window
  5.      of a building. The enemy is on the screen all the time, but I have set
  6. it's
  7.       'BOB LIMIT' to the size of the window, so the only time you see the
  8. enemy
  9.       is when it slides up into the 'BOB LIMIT' view area.
  10.       
  11.       The problem is, if i want another 'BOB' to detect a collision with
  12. the 'BOB'
  13.        in the window, it detects a collision with the 'BOB' even if it's
  14. under the
  15.        window (NOT IN THE 'BOB LIMIT' AREA). The 'BOB' does'nt even have
  16.        to be visible on the screen (IN THE 'BOB LIMIT' AREA), to detect a 
  17.        collision.
  18.  
  19. Why does it detect a collision, with a part that's not being drawed on the
  20. screen?
  21. is it because collisions are based on the X and Y positions? Or because AMOS
  22. looks at the size of the 'BOB' images in the .abk 'BOB' bank to check for
  23. collisions?
  24.  
  25. Robert W. Benjamin
  26. rwbenjamin@sosbbs.com
  27.  
  28.